'use strict';

import React from 'react'
import ReactDOM from 'react-dom'
import Logo from './components/Logo'
import Excel from './components/Excel'

var header = localStorage.getItem('header');
var data = localStorage.getItem('data');
if(!header) {
  header = ['Title', 'Year', 'Ratint', 'Comments'];
  data = [['Test', '2018', '4', '酒类'],['User', '2018', '4', '啤酒']];
}

ReactDOM.render(
  <div>
    <h1>
      <Logo /> Hello World!
    </h1>
    <Excel header={header} initdata={data}  />
  </div>,
  document.getElementById("pad")
)
